/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controle.controladores;

/**
 *
 * @author Taeko
 */
class Integrativo extends ControladorAbstrato{
    
    private double valorAnterior = 0;
    
    public Integrativo(double Ki){
        super(0, Ki, 0);
    }

    @Override
    public double valorControle(double entrada, double h) {
        double valor = valorAnterior + (Ki*h*entrada);
        
        valorAnterior = valor;
        
        return valor;
    }
    
}
